#ifndef DATA_H
#define DATA_H

#include <QString>
#include <QIcon>
typedef enum _FILE_TYPE{
    _None=0,
    _File,
    folder
}_FILE_TYPE;

typedef struct _DATA_STRUCT{
    unsigned int CurrNode;//当前节点是几级节点
    unsigned int Number;//当前节点中所以的序号
    QString ParentIndex;//父节点的树形索引
    QString ChildIndex;//字节点的树形索引，等于父节点的树形索引加当前节点序号的字符串值
    bool IsChild;//是否有字节点

    QString strFileName;
    QString strPath;
    QString strDate;
    QString strType;

    unsigned int intFileSize;
    _FILE_TYPE _FileType;
    QIcon _Icon;

    _DATA_STRUCT(){
        CurrNode=0;
        Number=0;
        ParentIndex="";
        ChildIndex="";
        IsChild=false;

        strFileName="";
        strPath="";
        strDate="";
        strType="";
        _FileType=_FILE_TYPE::_None;
    }
}_DATA_STRUCT,*PTR_DATA_STRUCT;

#endif // DATA_H
